When trying to use the ec2 plugin, ssh fails with this error:
SSH Error: unix_listener: "/home/username/.ansible/cp/ansible-ssh-ec2-255-255-255-255.compute-1.amazonaws.com-22-ubuntu.XXXXXXXX" too long for Unix domain socket
The path is limited to 104 characters including the \0 terminator. You need to make a shorten path, on way is to change the ansible config to shorten the path:
[ssh_connection]
control_path = %(directory)s/%%h-%%p-%%r
Avoid using /tmp to aovid security issues.